package com.woniu.product.infra.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存量单位
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lg_sku")
public class Sku implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * sku_id
     */
    @TableId(value = "sku_id", type = IdType.AUTO)
    private Integer skuId;

    /**
     * sku编码
     */
    private String skuCode;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 关联的spu
     */
    private Integer spuId;

    /**
     * 主图
     */
    private String skuMainPic;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 销售统计
     */
    private Integer salesCount;

    /**
     * 状态 ON_SALE | OFF_SALE | DELETE 删除
     */
    private String skuStatus;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 查询码
     */
    private String quickQueryCode;


}
